//
//  AddressViewController.m
//  rn_jkzx
//
//  Created by 华生升 on 2018/4/13.
//  Copyright © 2018年 Facebook. All rights reserved.
//

#import "AddressViewController.h"
#import "AddressAreaModel.h"
#import "AreaView.h"
#import "PushNative.h"
#import "AppDelegate.h"
@interface AddressViewController ()
@property(nonatomic,strong)AreaView *areaView;

@end

@implementation AddressViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
  self.view.backgroundColor = [UIColor whiteColor];
  float width = [UIScreen mainScreen].bounds.size.width;
  float height = [UIScreen mainScreen].bounds.size.height;
  self.title = @"所在地区";  
  
  _areaView = [[AreaView alloc]initWithFrame:CGRectMake(0, 0, width, height)];
  [self.view addSubview:_areaView];
  [_areaView showAreaView];
  _areaView.addressblock = ^(NSDictionary *address) {
    [PushNative postNotiToReactNative:address];
    [self dismissViewControllerAnimated:YES completion:nil];
  };
}



@end
